﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CarbonExchange.Tests
{
    [TestClass]
    public class CarbonExchangeContextTests : BaseTest
    {
        [TestMethod]
        public void CarbonExchangeContext_SetUpsCorrectSiteWithCorrectPath()
        {
            string tmp = base._TestSite.SiteRoots.First().Url;
            Assert.IsFalse(string.IsNullOrEmpty(tmp));
            Bll.CarbonExchangeContext context = new CarbonExchange.Bll.CarbonExchangeContext(tmp, "~/Default.aspx");

            Assert.IsNotNull(context.Site);
            Assert.AreEqual(_TestSite.Id, context.Site.Id);
        }
    }
}
